package com.ibeetl.admin.console.dao.business;

import com.ibeetl.admin.core.entity.PayOrder;
import com.ibeetl.admin.core.entity.business.ScoreRule;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

@SqlResource("console.business.scoreRule")
public interface ScoreRuleDao extends BaseMapper<ScoreRule> {

    PageQuery<ScoreRule> queryByCondtion(PageQuery<ScoreRule> query);

    ScoreRule queryById(String id);

    
    int delScoreRuleById(String openid);

    int doingRule(ScoreRule scoreRule);

    ScoreRule queryRuleByOpenid(String openid);

    int insertRule(ScoreRule scoreRule);

    void batchDelByOpenIds(List<String> ids);
}
